package projorientado.ocr.vfeature;

/**
 *  Representa um par que sequencias de features.
 */
public class FeaturesPair {

    private SequentialFeatures features1,features2;
    private float diffFactor = 0;

    public FeaturesPair(SequentialFeatures features1, SequentialFeatures features2, float diffFactor) {
        this.features1 = features1;
        this.features2 = features2;
        this.diffFactor = diffFactor;
    }

    public FeaturesPair() {
    }

    public SequentialFeatures getFeatures1() {
        return features1;
    }

    public void setFeatures1(SequentialFeatures features1) {
        this.features1 = features1;
    }

    public SequentialFeatures getFeatures2() {
        return features2;
    }

    public void setFeatures2(SequentialFeatures features2) {
        this.features2 = features2;
    }
    
    public boolean isValid() {
        return features1 != null && features2 != null && features1.featuresSize() == features2.featuresSize();
    }

    public float getDiffFactor() {
        return diffFactor;
    }

    public void setDiffFactor(float diffFactor) {
        this.diffFactor = diffFactor;
    }
    
}
